<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('/', 'index/index');
Route::post('sm4_cbc_encrypt', 'index/sm4CbcEncrypt')->validate([
    'msg' => 'require',
    'key' => 'require',
]);
Route::post('sm4_cbc_decrypt', 'index/sm4CbcDecrypt')->validate([
    'msg' => 'require',
    'key' => 'require',
]);
Route::post('sm3_dgst', 'index/sm3Dgst')
    ->validate([
        'msg' => 'require',
    ]);
Route::post('sm2_sign', 'index/sm2Sign')->validate([
    'path' => 'require',
]);
Route::post('sm2_verify', 'index/sm2Verify')->validate([
    'file_path' => 'require',
    'sign_file_path' => 'require',
]);
Route::post('upload', 'index/upload');
Route::post('download', 'index/download')->validate([
    'file_path' => 'require'
]);



